<template>
    <div class="GIScontent">
        11111111111111111111111111111
    </div>
</template>
  
<script>

export default {
name: "GIS",
data() {
    return {
        key:0,
        download:true,
        loading:true,
        timeNum:30,
        timeoutId: null,
    };
},
computed: {
    
},
components:{
    
},
created() {
},
mounted() {
    
},
methods: {
    fun(){
        console.log(this.key);
    },
    //加载地图
    addMapCase(){
        this.$refs.GISmap.addMapCase().then(res=>{
            if(res == '地图加载完执行'){
                console.log(11111);
            }
        });
    },
    //定时器
    timeFun(){
        if (this.timeoutId) {
            clearTimeout(this.timeoutId);
            this.timeoutId = null;
        }
        this.timeoutId = setTimeout(() => {
            
        },1000);
    },
},
beforeUnmount() {
    // 组件销毁前清除 setTimeout
    if (this.timeoutId) {
        clearTimeout(this.timeoutId);
    }
},
};
</script>
<style lang='scss' scoped>
</style>

<style lang='scss'>
</style>
  